package com.jctrip.hotel.management.client;

import com.jctrip.hotel.management.model.param.UpdateXiechengPricePolicyParam;
import com.jctrip.hotel.management.model.param.UpdateXiechengPricePolicyRangeParam;
import com.jctrip.hotel.management.model.result.GetXieChengPricePolicyResult;
import com.jctrip.hotel.management.model.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: zxy
 * @CreateTime: 2023-09-23 15:57
 * @Description:
 */
@FeignClient(name = "XieChengClient", url = "${feign.url.xieCheng}")
@RequestMapping(headers = {"Content-Type=application/json", "accept=application/json"})
public interface XieChengClient {
    @GetMapping("/info/queryPricePolicys")
    Result<GetXieChengPricePolicyResult> queryPricePolicys(@RequestParam String routeId,
                                                           @RequestParam Long pageNum,
                                                           @RequestParam Long pageSize);

    @PostMapping("/info/updatePricePolicy")
    Result<String> updatePricePolicy(@RequestBody UpdateXiechengPricePolicyParam updateXiechengPricePolicyParam);

    @PostMapping("/info/updatePricePolicyRange")
    Result<String> updatePricePolicyRange(@RequestBody UpdateXiechengPricePolicyRangeParam updateXiechengPricePolicyRangeParam);

}
